<template>
  <div>
    <ShowCom :str="str"></ShowCom>
  </div>
</template>

<script setup>
// 引入渲染组件
import ShowCom from "@/components/ShowCom.vue";
// 路由信息对象
import { useRoute } from "vue-router";
//
import { ref } from "vue";

let route = useRoute();

// console.log(route.name);
let str = ref("");

str.value = route.name;
</script>

<style lang="scss" scoped>
</style>